package com.ayu.commentbackend.pojo.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

@JsonIgnoreProperties(ignoreUnknown = true)
public class ChatCompletionResponse {
    private List<Choice> choices;

    // 无参构造器和getter/setter
    public ChatCompletionResponse() {}
    public List<Choice> getChoices() { return choices; }
    public void setChoices(List<Choice> choices) { this.choices = choices; }

    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class Choice {
        private Message message;

        public Choice() {}
        public Message getMessage() { return message; }
        public void setMessage(Message message) { this.message = message; }
    }

    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class Message {
        @JsonProperty("content")
        private String content;

        @JsonProperty("reasoning_content")
        private String reasoningContent;

        public Message() {}
        public String getContent() { return content; }
        public String getReasoningContent() { return reasoningContent; }
        public void setContent(String content) { this.content = content; }
        public void setReasoningContent(String reasoningContent) { this.reasoningContent = reasoningContent; }
    }
}